/**
 * 数数字补0
 * @param {Object} num
 * @param {Object} length
 */
function mend(num, length) {
	if (length > 9) {
		return "超过最大限制!"
	} else if (num.toString().length > 4 || num.toString().length > length) {
		return num;
	} else {
		return ("000000000000" + num).substr(-length);
	}
}

function getNum() {
	let arr = [1, 3, 6, 8, 12];
	let len = arr.length;
	console.log(len);
	if (len % 2 === 0) {
		console.log('o');
	} else {
		console.log('j');
	}
}

// 协议
var protocol = 'http';
var endpoint = 'love.nc.wp';
